package com.lhy.common.web.wrapper.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lhy.common.web.entity.ComparatorEnum;
import com.lhy.common.web.entity.DbField;
import com.lhy.common.web.wrapper.AbstractLikeSearchComparator;

public class LeftlikeSearchComparator extends AbstractLikeSearchComparator {

    @Override
    protected void exeAccept(QueryWrapper queryWrapper, DbField dbField) {
        queryWrapper.likeLeft(dbField.getName(), dbField.getValue());
    }

    @Override
    public ComparatorEnum comparatorEnum() {
        return ComparatorEnum.lIKE_LEFT;
    }
}
